package com.xingchi.tornado.storage.core.model.dto;

import com.xingchi.tornado.model.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

/**
 * <p>
 * 文件信息表
 * </p>
 *
 * @author xingchi
 * @date 2024-05-04 18:01
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "FileDTO", description = "文件信息表")
public class FileDTO extends BaseDTO {

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 存储路径
     */
    @Schema(description = "存储路径")
    private String path;

    /**
     * 字节数
     */
    @Schema(description = "字节数")
    private Long size;

    /**
     * 后缀
     */
    @Schema(description = "后缀")
    private String suffix;

    /**
     * 类型1图片;2视频;3音频;4文档;10其他
     */
    @Schema(description = "类型1图片;2视频;3音频;4文档;10其他")
    private Integer type;

    /**
     * 文件唯一标识
     */
    @Schema(description = "文件唯一标识")
    private String sha256;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
